import java.io.IOException;

/**
 * file name:		TestException.java.
 * copyright:		© 2009 Kingsoft
 * author:			TanMenglong
 */

public class TestException {
	public void testException() {
		try {
			try {
				if (true) {
					throw new IllegalArgumentException();
				}
				throw new IOException();
			} catch (IOException e) {
				throw new IOException(e);
			}
		} catch (IllegalArgumentException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		TestException test = new TestException();
		test.testException();
	}

}
